import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/user/signIn',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/sys/user/profile',
    method: 'get',
    params: { token }
  })
}

export function saveInfo(data) {
  return request({
    url: '/sys/user/save',
    method: 'get',
    data
  })
}

export function saveInfoPassword(data) {
  return request({
    url: '/sys/user/updatePassword',
    method: 'post',
    data
  })
}
